package com.hq.bootdemo.mapper;

import com.hq.bootdemo.entity.RoomEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RoomMapper {
    List<RoomEntity> selectAll();
    int insertOne(@Param("rNum") String rNum, @Param("rType") int rType);

    RoomEntity selectOne(@Param("id") int id);

    int delOne(Integer id);
    int rCount(int rType);
}
